package com.blankm.codec_tools;

import android.app.Application;
import android.content.Context;

import cn.blankm.video.config.VideoPlayerConfig;
import cn.blankm.video.player.VideoViewManager;

import androidx.multidex.MultiDex;

/**
 * Copyright (C), 1999-2022
 * Author qfmeng@iflytek.com
 * Date 2022/6/22 16:27
 * <p>
 * Description:
 */

public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        VideoPlayerConfig playerConfig = VideoPlayerConfig.newBuilder()
                .setBuriedPointEvent(new MyBuriedPointEvent()).build();
        VideoViewManager.setConfig(playerConfig);
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }
}
